package com.leyou.search.service;

import com.leyou.search.dto.SearchRequest;
import com.leyou.search.entity.Goods;
import com.leyou.starter.elastic.entity.PageInfo;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * @author GL160601@163.com
 * @date 2020/12/13 20:03
 */
public interface SearchService {
    Mono<List<String>> generateSuggest(String key);

    Mono<PageInfo<Goods>> searchGoods(SearchRequest searchRequest);

    Mono<Map<String,List<?>>> listFilter(SearchRequest searchRequest);
}
